//
//  VOHMusicTableViewModel.m
//  VoiceOfHeart
//
//  Created by 吉龙 on 16/8/22.
//  Copyright © 2016年 吉龙. All rights reserved.
//

#import "VOHMusicTableViewModel.h"
#import "VOHMusicDetailModel.h"
@implementation VOHMusicTableViewModel

- (void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"list"]) {
        self.list = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            VOHMusicDetailModel *model = [[VOHMusicDetailModel alloc]init];
            [model setValuesForKeysWithDictionary:dic];
            [self.list addObject:model];
        }
    }else {
        [super setValue:value forKey:key];
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
@end
